package cn.tedu.straw.redis.tag.service.impl;

import cn.tedu.straw.commons.vo.TagVO;
import cn.tedu.straw.redis.tag.mapper.TagMapper;
import cn.tedu.straw.redis.tag.service.ITagService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author shkstart
 * @create 2020-08-10 16:13
 */
@Service
@Slf4j
public class TagServiceImpl implements ITagService {
    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<TagVO> getAllTags() {

        return tagMapper.findAll();
    }
}
